CygNet Studio > Scripting in CygNet Studio > Scripting Examples > Polling All Rows in a Group Grid Control

Polling All Rows in a Group Grid Control

Using script, the rows in a Group Grid control can be iterated and actions can be performed based on their attributes or values. The following script shows, in general, how to poll the facility for each row in a Group Grid control.

Sub PollButton_EventClick()

Dim This : Set This = PollButton

numRows = gridControl.X.GetRows()

EnableLiveMode(True)

For i = 0 To numRows - 1

SendUisCommand "MYSITE.UIS",gridControl.X.RowFacility(i),"Poll"

Next

End Sub


Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.